home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
A Survey of Western Art
/
A Survey of Western Art.iso
/
pc
/
setup.inf
< prev
next >
Wrap
Text File
|
1995-02-02
|
7KB
|
197 lines
;;SETUP.INF file for Ebook Electronic Library of Art
;;this file is for the Survey of Western Art--Version 3
SetVariable(ProgPath,"C:\TDC")
SetVariable(ProgName,"SWA.EXE")
SetVariable(InstallName, "Survey of Western Art")
SetVariable(DataSpace,"1.7 Megabytes")
SetVariable(ProgSpace,"1.1 Megabytes")
SetVariable(EbookSize, 1 100 000)
SetVariable(DataSize, 1 700 000)
SetVariable(TitleName,"Survey of Western Art")
SetVariable(IniName,"SWAEA.INI")
GetCurPath (CurPath)
; The following instructions are displayed several times so we put the
; text in a variable.
;
SetVariable (InsAskPath,
"Modify the default path if necessary, and then click on {\b OK} or "
"press {\b Enter} to continue. ")
SetVariable (InsBadPath,
"The path is currently not valid. You must specify a drive "
"letter, a colon, and a directory from the root of the drive. ")
; Set the title of all dialog windows.
;
WindowTitle (<InstallName>" Setup")
; Set the instruction text used in the initial instructions window.
; Add Help instructions if the file SETUP.HLP exists.
;
SetVariable (InitialInstructions,
"Click on {\b OK} or press {\b Enter} to continue. "
"To abort the setup, click on the {\b Exit} button at the "
"bottom right corner of the screen, or press {\b F3}. ")
IfFileExistsGoto ("SETUP.HLP", AddHelpInstructions)
Goto (DisplayInitialMessage)
AddHelpInstructions:
SetVariable (InitialInstructions,
<InitialInstructions> "You can always obtain help by "
"clicking on the {\b Help} button or pressing {\b F1}. ")
; Display the initial message.
;
DisplayInitialMessage:
DisplayMessage (
"The Setup program will install the " <InstallName> " on your hard disk."
" There are two options available for installation:%n%n"
"Run " <InstallName> " Entirely off of the CD-ROM.%n%n"
"Copy " <ProgName> " to your Hard Disk to improve execution speed.%n%n",
<InitialInstructions>)
;ask if user wants to copy the ebook files to hard disk
AskYesNo (Prompt, "Yes",
"The " <TitleName> " files require about " <ProgSpace> " of disk "
"space. Would you like to copy them to your hard disk?",
<TitleName> " Can be run from the CD-ROM, but copying it to your "
"Hard disk will improve execution speed.\par\par"
"Click on {\b Yes} or press {\b 'Y'} to copy the " <TitleName>
" files.\par "
"Click on {\b No} or press {\b 'N'} to proceed without copying the "
<TitleName> " source files.")
IfEqualGoto (<Prompt>, "No", DontPromptTitlePath)
AskAgain:
; Ask for where the Ebook files should be installed.
;
PromptEbookPath:
PromptPath (ProgPath, <ProgPath>,
"Where should Setup install the Program files?",
<InsAskPath>, <InsBadPath>)
; Don't allow Ebook to be installed in the Windows directory
;
GetWinPath (WinPath)
GetWinSystemPath (SystemPath)
IfNotEqualGoto (<ProgPath>, <WinPath>, CheckSpace)
DisplayMessage (
"You cannot install this program into the Windows directory. "
"Please enter another directory.",
"Click on {\b OK} or press {\b Enter} to enter another directory "
"for this program.")
Goto (PromptEbookPath)
; Check if there is enough space to install the Ebook files.
;
CheckSpace:
GetSpaceAvailable (SpaceAvailable, <ProgPath>)
IfLowerGoto (<EbookSize>, <SpaceAvailable>, EbookPathOK)
AskYesNo (Prompt, "Yes",
"There may not be enough space to install the "<InstallName>" Files."
" Would you like to enter a new path for the files? ",
"Click on {\b Yes} or press {\b 'Y'} to enter a new path for the "
"program files.\par "
"Click on {\b No} or press {\b 'N'} to continue anyway.\par "
"Click on the {\b Exit} button or press {\b F3} to exit Setup. "
"You may wish to exit Setup and make some more space on your hard "
"disk. Run Setup again when there is enough space on your hard "
"disk. ")
IfEqualGoto (<Prompt>, "Yes", PromptEbookPath)
EbookPathOK:
;create the subdirectory
MakePath(<ProgPath>)
;copy the ebook files
OpenCopyProgress(
"Setup is copying the "<InstallName> " Program files.",
"Please wait while Setup is copying files.")
CopyFile("SWA.EXE",<ProgPath> "SWA.EXE", 250000)
CopyFile("TITLE.DIB",<ProgPath> "TITLE.DIB", 93000)
CopyFile("TITLE.WAV",<ProgPath> "TITLE.WAV", 550000)
CopyFile("TDCEEA.HLP",<ProgPath> "TDCEEA.HLP",50000)
CopyFile("INTRO.EXE",<ProgPath> "INTRO.EXE",50000)
CopyFile("TDC.BMP",<ProgPath> "TDC.BMP",50000)
CopyFile("TDC.ICO",<ProgPath> "TDC.ICO",50000)
CloseCopyProgress()
SetVariable(DataPath,<CurPath>"DATA")
GoTo(EbookCopied)
DontPromptTitlePath:
SetVariable(DataPath,<CurPath>"DATA")
SetVariable(ProgPath,<CurPath>)
GoTo(EbookNotCopied)
EbookCopied:
SetVariable(ProgPath,<ProgPath>)
EbookNotCopied:
;copy the ebook.ini file and add the paths
AddToProfileIni(<IniName>,"PATHS","CDROM",<CurPath>)
AddToProfileIni(<IniName>,"PATHS","PICTURE",<CurPath>"PIX")
AddToProfileIni(<IniName>,"PATHS","DATA",<CurPath>"DATA")
AddToProfileIni(<IniName>,"PATHS","INDEX",<CurPath>"DATA")
AddToProfileIni(<IniName>,"PATHS","PSTAMPPATH",<CurPath>"DATA")
AddToProfileIni(<IniName>,"PATHS","MIDIPATH",<CurPath>"MIDI")
;add the info for this title to ebook.ini
AddToProfileIni(<IniName>,"EEAVOL1","Title","A Survey of Western Art")
AddToProfileIni(<IniName>,"EEAVOL1","Card","WINCARD")
AddToProfileIni(<IniName>,"EEAVOL1","NumberIndex","6")
AddToProfileIni(<IniName>,"EEAVOL1","IndexNames","ARTIST,TITLE,MEDIUM,DATE,OBJ,CSCHOOL");
AddToProfileIni(<IniName>,"EEAVOL1","PStamp","1")
AddToProfileIni(<IniName>,"EEAVOL1","BrowseMode","0")
AddToProfileIni(<IniName>,"EEAVOL1","SplitPath","1")
AddToProfileIni(<IniName>,"EEAVOL1","NumberPixColumns","5")
AddToProfileIni(<IniName>,"EEAVOL1","NumberPixRows","3")
AddToProfileIni(<IniName>,"EEAVOL1","NumberMIDI","4")
AddToProfileIni(<IniName>,"EEAVOL1","MidiFiles","PRIMAVER,PROFUMIE,LASIRENA,CANTENA")
AddToProfileIni(<IniName>,"EEAVOL1","MidiTitles","Ecco la Primavera,Canto de'Profumieri,Balletto la Sirena,La Cantena D'Amore")
;add the program group
OpenProgManProgress("Setup is adding a Program Manager Group",
"Please wait while Setup adds the Group")
OpenProgManGroup("TDC Interactive")
AddProgManItem("A Survey of Western Art",<ProgPath>"Intro.exe SWA.EXE EEAVOL1",
<ProgPath>"TDC.ICO",0)
CloseProgManProgress()
;cleanup
IfIncompleteGoto(NotInstalled)
Installed:
SetVariable (Message,
"The Setup program has successfully installed the "
<TitleName> ".%n%n")
GoTo(Exit)
NotInstalled:
SetVariable (Message,
"Setup has finished, but the installation was incomplete. "
"You should correct any problems (such as insufficient disk "
"space, missing source files, or locked directories) and run "
"Setup again.%n%n")
Exit:
DisplayMessage (<Message>,
"Click on {\b OK} or press {\b Enter} to return to the "
"Program Manager.")